package com.itheima.literal;

/**
 * 目标：掌握常见字面量的书写格式
 */
public class LiteralDemo {
    public static void main(String[] args) {
        printAllType();
    }

//    帮我设计一个方法，打印出八种基本数据类型定义的变量
    public static void printAllType() {
        int a = 10;
        long b = 20;
        float c = 30.0f;
        double d = 40.0;
        char e = 'a';
        boolean f = true;
        byte g = 127;
        short h = 32767;
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        System.out.println(e);
        System.out.println(f);
        System.out.println(g);
        System.out.println(h);
    }
}

